package com.gibs.peixunapi.service;

import java.util.List;

import com.gibs.peixunapi.VO.SubjectHubVO;
import com.gibs.peixunapi.result.Result;

public interface SubjectHubService {

    Result create(SubjectHubVO object);

    Result save(SubjectHubVO object);

    Result delete(Integer id);

    Result getListPage(String key, Integer current, Integer limit);

    Result getOptions(String key);

    /**
     * 马上新增并返回实体id
     *
     * @param object 题库VO类
     * @return Subject.id
     */
    Integer persist(SubjectHubVO object);

    /**
     * 根据题库idList返回题目VO实体类列表
     *
     * @param idList 题库idi列表
     * @return 题库VO类列表
     */
    Result getVOListByIdList(List<Integer> idList);


}

